<?php
$globals_test = @ini_get('register_globals');
if ( isset($globals_test) && empty($globals_test) ) {
$types_to_register = array('GET', 'POST', 'COOKIE', 'SESSION', 'SERVER');
foreach ($types_to_register as $type) {
$arr = @${'_' . $type};
if (@count($arr) > 0)
extract($arr, EXTR_SKIP);
}
}

if (preg_match("/config.in.php/i",$PHP_SELF)) {
    Header("Location: ../index.php");
    die();
}

//MAXSITE Version
define("_SCRIPT","ATOMYMAXSITE"); 
define("_VERSION","2.5"); 

//Web Config

define("TIMESTAMP",time()) ;
define("WEB_TIMESTART","1341912995") ;  
//define("WEB_TEMPLATES","atomy") ; 

define("USE_CAPCHA", TRUE); 
define("CAPCHA_TYPE","2");
define("CAPCHA_NUM","4");
define("CAPCHA_WIDTH","60");
define("CAPCHA_HEIGHT","25"); 

//Calendar
define("USE_THAIYEAR", TRUE); 


//MySQL Connect
define("DB_HOST","localhost");
define("DB_NAME","tnnexcha_tnn");//atomy,robocon_tnnexchange
define("DB_USERNAME","tnnexcha_tnndb");
define("DB_PASSWORD",'8f%$M]Qo06IK');
define("ISO","utf-8");

// PHPMailer Config
// Read more: http://support.google.com/mail/bin/answer.py?hl=en&answer=13287
define("MAILER_ENABLE", TRUE);
define("MAILER_CHARSET", "utf-8");
define("MAILER_GHOST", "smtp.gmail.com");
define("MAILER_AUTH", TRUE);
define("MAILER_SECURE", "tls");
define("MAILER_PORT", 587);
define("MAILER_GUSER", "tnnexchange@gmail.com"); // User Gmail
define("MAILER_GPASS", "0835720459"); // Password Gmail

//MySQL table
define("TB_ADMIN","web_admin");
define("TB_ADMIN_GROUP","web_groups");
define("TB_NEWS","web_news");
define("TB_NEWS_COMMENT","web_news_comment");
define("TB_NEWS_CAT","web_news_category");
define("TB_KNOWLEDGE","web_knowledge");
define("TB_KNOWLEDGE_COMMENT","web_knowledge_comment");
define("TB_KNOWLEDGE_CAT","web_knowledge_category");
define("TB_CALENDAR","web_calendar");
define("TB_WEBBOARD","web_webboard");
define("TB_WEBBOARD_COMMENT","web_webboard_comment");
define("TB_WEBBOARD_CAT","web_webboard_category");
define("TB_MEMBER","web_member");
define("TB_MAIL","web_mail");
define("TB_EXCHANGE","web_exchange");
define("TB_BUY_LR","web_buy_lr");
define("TB_SELL_LR","web_sell_lr");

//Permission Name
define("_NEWS","เน€เธยเน€เธยเน€เธเธ’เน€เธเธเน€เธเธเน€เธเธ’เน€เธเธ");
define("_NEWSCAT","เน€เธเธเน€เธเธเน€เธเธเน€เธโ€เน€เธเธเน€เธเธเน€เธเธเน€เธยเน€เธยเน€เธยเน€เธเธ’เน€เธเธเน€เธเธเน€เธเธ’เน€เธเธ");
define("_ADMIN","เน€เธยเน€เธเธเน€เธยเน€เธโ€เน€เธเธเน€เธยเน€เธเธ…เน€เธเธเน€เธเธเน€เธยเน€เธย");
define("_USER","เน€เธเธเน€เธเธเน€เธเธ’เน€เธยเน€เธเธ”เน€เธย");
define("_GROUP","เน€เธเธเน€เธเธเน€เธโ€เน€เธเธ‘เน€เธยเน€เธยเน€เธเธเน€เธยเน€เธโ€เน€เธเธเน€เธยเน€เธเธ…เน€เธเธเน€เธเธเน€เธยเน€เธย");
define("_LINKS","Web Links");
define("_ARTICLE","เน€เธยเน€เธโ€”เน€เธยเน€เธเธเน€เธเธ’เน€เธเธ");
define("_ARTICLECAT","เน€เธเธเน€เธเธเน€เธเธเน€เธโ€เน€เธเธเน€เธเธเน€เธเธเน€เธยเน€เธยเน€เธโ€”เน€เธยเน€เธเธเน€เธเธ’เน€เธเธ");
define("_CONTACT","เน€เธเธเน€เธเธ•เน€เธโฌเน€เธเธเน€เธเธ…เน€เธยเน€เธโ€ขเน€เธเธ”เน€เธโ€เน€เธโ€ขเน€เธยเน€เธเธเน€เธยเน€เธยเน€เธโฌเน€เธเธเน€เธยเน€เธยเน€เธยเน€เธยเน€เธโ€ขเน€เธย");
define("_CALENDAR","เน€เธยเน€เธยเน€เธเธ”เน€เธโ€”เน€เธเธ”เน€เธยเน€เธยเน€เธเธ”เน€เธยเน€เธยเน€เธเธเน€เธเธเน€เธเธ");
define("_WEBBOARD","เน€เธโฌเน€เธเธเน€เธยเน€เธยเน€เธยเน€เธเธเน€เธเธเน€เธยเน€เธโ€");
define("_EDITORTALK","Editor Talk");
define("_ABOUTUS","เน€เธโฌเน€เธยเน€เธเธ•เน€เธยเน€เธเธเน€เธเธเน€เธยเน€เธเธ‘เน€เธยเน€เธโฌเน€เธเธเน€เธเธ’");
define("_MINEPASS","เน€เธยเน€เธเธ—เน€เธยเน€เธเธเน€เธยเน€เธเธเน€เธยเน€เธยเน€เธยเน€เธย เน€เธเธเน€เธเธเน€เธเธ‘เน€เธเธเน€เธยเน€เธยเน€เธเธ’เน€เธย");
define("_CONFIG","เน€เธเธเน€เธเธ‘เน€เธเธเน€เธโ€”เน€เธยเน€เธเธ’เน€เธเธเน€เธโฌเน€เธเธเน€เธย");
define("_CONFIGCAT","เน€เธเธเน€เธเธเน€เธเธเน€เธโ€เน€เธเธเน€เธเธ‘เน€เธเธเน€เธโ€”เน€เธยเน€เธเธ’เน€เธเธเน€เธโฌเน€เธเธเน€เธย");
define("_BLOCK","เน€เธโ€ขเน€เธเธ“เน€เธยเน€เธเธเน€เธยเน€เธยเน€เธย block");
define("_POLL","เน€เธยเน€เธยเน€เธยเน€เธเธเน€เธเธ“เน€เธเธเน€เธเธเน€เธย");
define("_GBOOK","เน€เธเธเน€เธเธเน€เธเธเน€เธโ€เน€เธโฌเน€เธเธเน€เธเธ•เน€เธยเน€เธเธเน€เธเธ");
//Icon Size
define("_INEWS_W","200"); 
define("_INEWS_H","150"); 
define("_IKNOW_W","200"); 
define("_IKNOW_H","150"); 
define("_Iuser_W","80");
define("_Iuser_H","80"); 
define("_Iadmin_W","80");
define("_Iadmin_H","100");
//Show Topic
define("_NEWS_COL","2");
define("_KNOW_COL","2"); 

//Webboard control
define("_NUM_ID","5");
define("_SHOW_BOARD_PIN","5");
define("_PERPAGE_BOARD","20"); 
define("_ENABLE_BOARD_UPLOAD",true);
define("_WEBBOARD_LIMIT_UPLOAD",102400);
define("_WEBBOARD_LIMIT_UPLOADS",1024000);
define("_WEBBOARD_LIMIT_PICWIDTH","600");
define("_MEMBER","เน€เธเธเน€เธเธเน€เธยเน€เธยเน€เธเธเน€เธเธเน€เธเธ’เน€เธยเน€เธเธ”เน€เธย");
define("_MEMBER_LIMIT_PICWIDTH","100");
define("_MEMBER_LIMIT_UPLOAD",102400);
define("_MEMBER_COL","2"); 




//useronline
define("TB_useronline","web_useronline");
define("TB_gbook","web_gbook");
define("TB_personnel","web_personnel");
define("TB_personnel_group","web_personnel_group");
define("TB_personnel_list","web_personnel_list");
define("TB_ACTIVEUSER","web_activeuser");
define("_IPER_W","160");
define("_IPER_H","200"); 
define("_IPERTHB_W","120");
define("_IPERTHB_H","150");

define("TB_PAGE","web_page");
define("_IPAGE_W","48");
define("_IPAGE_H","48");
define("_PAGE","เน€เธโฌเน€เธเธเน€เธยเน€เธเธเน€เธเธเน€เธเธเน€เธยเน€เธเธ’เน€เธยเน€เธโฌเน€เธเธเน€เธย");

define("TB_RESEARCH","web_research");
define("_Iresearch_W","100");
define("_Iresearch_H","120");
define("_RESEARCH","เน€เธยเน€เธเธ…เน€เธยเน€เธเธ’เน€เธยเน€เธโ€”เน€เธเธ’เน€เธยเน€เธเธเน€เธเธ”เน€เธยเน€เธเธ’เน€เธยเน€เธเธ’เน€เธเธ");
define("TB_RESEARCH_COMMENT","web_research_comment");
define("TB_RESEARCH_CAT","web_research_category");
define("_RESEARCHCAT","เน€เธเธเน€เธเธเน€เธเธเน€เธโ€เน€เธเธเน€เธเธเน€เธเธเน€เธยเน€เธยเน€เธเธ…เน€เธยเน€เธเธ’เน€เธยเน€เธโ€”เน€เธเธ’เน€เธยเน€เธเธเน€เธเธ”เน€เธยเน€เธเธ’เน€เธยเน€เธเธ’เน€เธเธ");
define("_RESEARCH_COL","2"); 

//GALLERY
define("TB_GALLERY","web_gallery");
define("_GALLERY","เน€เธเธเน€เธเธ‘เน€เธเธ…เน€เธยเน€เธเธ‘เน€เธเธเน€เธเธเน€เธเธเน€เธยเน€เธย เน€เธเธ’เน€เธย");
define("TB_GALLERY_COMMENT","web_gallery_comment");
define("TB_GALLERY_CAT","web_gallery_category");
define("_IGALLERY_W","500"); 
define("_IGALLERY_H","600");
define("_IGALLERYT_W","200"); 
define("_IGALLERYT_H","150");
define("_GALLERYCAT","เน€เธเธเน€เธเธเน€เธเธเน€เธโ€เน€เธเธเน€เธเธเน€เธเธเน€เธยเน€เธยเน€เธยเน€เธเธ…เน€เธย gallery");
define("_GALLERY_COL","3"); 
define("_GALLERYCAT_COL","2");
define("_GALLERY_ADMIN_COL","4"); 
define("_GALLERYCAT_ADMIN_COL","2");
define("_GALLERY_LIMIT_UPLOAD","512000");


//download
define("TB_DOWNLOAD","web_download");
define("_Idownload_W","100");
define("_Idownload_H","80"); 
define("_DOWNLOAD","download");
define("TB_DOWNLOAD_COMMENT","web_download_comment");
define("TB_DOWNLOAD_CAT","web_download_category");
define("_DOWNLOADCAT","เน€เธเธเน€เธเธเน€เธเธเน€เธโ€เน€เธเธเน€เธเธเน€เธเธเน€เธยเน€เธยเน€เธยเน€เธเธ…เน€เธย download");
define("_DOWNLOAD_COL","2"); 

//webconfig
define("TB_CONFIG","web_config");
define("TB_CONFIG_CAT","web_config_category");
//block
define("TB_BLOCK","web_block");
//vote
define("TB_VOTE","web_vote");
//alumnus
define("TB_ALUMNUS","web_alumnus");
define("_ALUMNUS_LIMIT_PICWIDTH","100");
define("_ALUMNUS_LIMIT_UPLOAD","51200");
define("_ALUMNUS_COL","2"); 

// workboard
define("TB_WORKBOARD_MEMBERS","web_workboard_members");
define("TB_WORKBOARD_POSITIONS","web_workboard_positions");
define("TB_WORKBOARD_PRIORITIES","web_workboard_priorities");
define("TB_WORKBOARD_PROJECTS","web_workboard_projects");
define("TB_WORKBOARD_PROJECTS_MEMBERS","web_workboard_projects_members");
define("TB_WORKBOARD_STATUS","web_workboard_status");
define("TB_WORKBOARD_TASKS","web_workboard_tasks");
define("TB_WORKBOARD_TASKS_MEMBERS","web_workboard_tasks_members");

define("TB_BLOG","web_blog");
define("TB_BLOG_COMMENT","web_blog_comment");
define("TB_BLOG_CAT","web_blog_category");
define("TB_BLOG_LEVEL","web_blog_level");
define("_BLOG","blog");
define("_BLOG_COL","2");
define("_Iblog_W","200");
define("_Iblog_H","150");

// poll
define("TB_POLL","web_polls");
define("TB_POLL_VOTES","web_poll_votes");
define("TB_IPBLOCK","web_ipblock");

// templates
define("TB_TEMPLATES","web_templates");
// images random
define("TB_RANDOM","web_random");
define("_IRAN_W","520");   
define("_IRAN_H","250");

// menu
define("TB_MENU","web_menu");

?>